package vip.xiaonuo.facedoor.modular.workflow.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.core.annotion.Permission;
import vip.xiaonuo.facedoor.modular.workflow.entity.WorkflowSetting;
import vip.xiaonuo.facedoor.modular.workflow.service.WorkflowSettingService;
import vip.xiaonuo.facedoor.modular.workflow.vo.WorkFlowBeanInfo;


import javax.annotation.Resource;
import java.util.List;

@Slf4j
@RestController
public class WorkflowSettingController {


    @Resource
    private WorkflowSettingService workflowSettingService;

    @Permission
    @GetMapping("/workflowsetting/listWorkflowSetting")
    public List<WorkflowSetting> listWorkflowSetting()  {
        return workflowSettingService.listWorkflowSetting();
    }


    @GetMapping("/workflowsetting/listWorkFlowBizEntity")
    public List<WorkFlowBeanInfo> listWorkFlowBizEntity(){
        return workflowSettingService.WorkFlowBizEntity();
    }






}

